import App from './App'


import uView from "uview-ui";
Vue.use(uView);

import {
	myRequest,
	BASE_URL
} from './util/request.js';
Vue.prototype.$baseURL = BASE_URL;
Vue.prototype.$myRequest = myRequest;

import {
	loginRequest
} from './util/login.js';
Vue.prototype.$loginRequest = loginRequest;


import { uploadFiles } from './util/api.js';
Vue.prototype.$uploadFiles = uploadFiles;

import { imageUrl } from './util/imageUrl.js';
Vue.prototype.$imageUrl = imageUrl;
import { makePhoneCall } from './util/makePhoneCall.js';
Vue.prototype.$makePhoneCall = makePhoneCall;


import { statusText } from './util/statusText.js';
Vue.prototype.$statusText = statusText;

import util from './util/util.js';
Vue.prototype.$util = util;

import Loading from './components/loading/loading.vue'
Vue.component('Loading', Loading)
import navBack from './components/navBack/navBack.vue'
Vue.component('navBack', navBack)

import {
	routeTo
} from './util/routeTo.js';
Vue.prototype.$routeTo = routeTo;

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
import store from './store'
const app = new Vue({
    ...App,
		store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif